package com.youyicloud.api;

import com.youyicloud.constants.Constants;
import com.youyicloud.service.EquipmentTypeService;
import com.youyicloud.vo.ResponseBodyEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("equipment")
public class EquipmentTypeApi {
    @Autowired
    private EquipmentTypeService equipmentTypeService;

    @RequestMapping("findAll")
    public ResponseBodyEntity findAll(){
        ResponseBodyEntity responseBodyEntity = new ResponseBodyEntity();
        responseBodyEntity.setData(equipmentTypeService.findAll());
        responseBodyEntity.setMsg("查询设备类型");
        responseBodyEntity.setState(Constants.SUCCEED);
        return responseBodyEntity;
    }

}
